/**
 * 
 */
package flightReservation;

import java.io.Serializable;

/**
 *
 */
public class Reservation implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String reservationNo;
	private Passenger passenger;
	private Seat seat;
	static String reservationNumber = "64566";

	/**
	 * 
	 */
	public Reservation() {

	}
	//
	public Reservation(String reservationNo, Passenger passenger, Seat seat) {
		this.reservationNo = reservationNo;
		this.passenger = passenger;
		this.seat = seat;
	}

	public Passenger getPassenger() {
		return this.passenger;
	}
	public Seat getSeat() {
		return this.seat;
	}
	public String getReservationNo()
	{
		return this.reservationNo;
	}
	
	public static String getNextReservationNo(){
		Reservation.reservationNumber = Integer.toString(Integer.parseInt(Reservation.reservationNumber) + 1);
		return Reservation.reservationNumber; 
	}


	/**
	 * @param args
	 */
	public static void tester(String[] args) {

	}

}
